package com.djf.djfcs.dto;

import com.djf.djfcs.entity.Order;
import com.djf.djfcs.entity.UserDelivery;
import lombok.Data;

import java.util.List;

/**
 * 订单详情响应DTO
 */
@Data
public class OrderDetailResponse {

    /**
     * 订单信息
     */
    private Order order;

    /**
     * 配送信息列表（一个订单可能有多个配送记录）
     */
    private List<UserDelivery> deliveries;

    /**
     * 构造方法
     */
    public OrderDetailResponse() {}

    public OrderDetailResponse(Order order, List<UserDelivery> deliveries) {
        this.order = order;
        this.deliveries = deliveries;
    }
}